package com.chai.service.impl;

import java.io.Serializable;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.chai.dao.UserDaoI;
import com.chai.entity.Tuser;
import com.chai.service.UserServiceI;

@Service("userService")
public class UserServiceImpl implements UserServiceI {
	/**
	* Logger for this class
	*/
	private static final Logger logger = Logger.getLogger(UserServiceImpl.class);
	
	
	private UserDaoI userDao;
	
	
	
	public UserDaoI getUserDao() {
		return userDao;
	}
	@Autowired
	public void setUserDao(UserDaoI userDao) {
		this.userDao = userDao;
	}

	@Override
	public void test() {
		// TODO Auto-generated method stub
		logger.info("调用service!");
	}

	@Override
	public Serializable save(Tuser t) {
		// TODO Auto-generated method stub
		return this.userDao.save(t);
	}

}
